package cn.git.shiro.service.impl;

import cn.git.shiro.entity.Permissions;
import cn.git.shiro.service.PermissionsService;
import org.springframework.stereotype.Service;

/**
 * @description: 权限验证serviceImpl
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-03-27
 */
@Service
public class PermissionsServiceImpl implements PermissionsService {

    /**
     * 根据id获取权限
     *
     * @param id
     * @return
     */
    @Override
    public Permissions getPermissionsById(String id) {
        Permissions permissions = new Permissions();
        permissions.setId(id);
        permissions.setName("user:add");
        permissions.setInfo("user:add");
        permissions.setDesc("添加用户");
        return permissions;
    }
}
